﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using BioBooking.Data;
using System.ComponentModel;

namespace BioBooking.Client.Screens
{
    /// <summary>
    /// Interaction logic for winBooking.xaml
    /// </summary>
    public partial class BookingScreen : UserControl
    {
        BioBooking.Data.IRepository repository;
        private Showing showing;
        public Wizard wizard { get; set; }

        public BookingScreen()
            : this(null, null)
        {
        }

        public BookingScreen(Showing showing, Wizard wizard)
        {
            InitializeComponent();
            if (!DesignerProperties.GetIsInDesignMode(this))
            {
                this.wizard = wizard;

                this.showing = showing;
                this.DataContext = showing;
                spSeats.Showing = showing;

                repository = Repository.GetRepository();
            }
        }

        private void cbRow_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }

        private void cbSeat_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }

        private void butBack_Click(object sender, RoutedEventArgs e)
        {
            wizard.Previous();
        }
    }
}
